package com.neusoft.service;

import com.neusoft.entity.BanJi;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(value = "provider-banji")
public interface BanjiFeignService {
    @GetMapping("/banji/queryAll")
    Object queryAll();
    @GetMapping("/banji/queryById/{id}")
    Object queryById(@PathVariable(value = "id") Integer id);
    @PostMapping("/banji/insert")
    Object insert(BanJi bean);
}
